package com.example.toutiao.ui.main.frg
import android.view.View
import com.example.toutiao.R
import com.example.toutiao.base.BaseFragment
import com.example.toutiao.ui.main.model.RecommenModel
import com.example.toutiao.ui.main.model.TabListModel
import com.example.toutiao.ui.main.presenter.HomePresenter
import com.example.toutiao.ui.main.view.HomeView

class HomeListFragment(id: String) : BaseFragment<HomeView, HomePresenter>(), HomeView {
    private var views:View?=null
    override fun getLayoutId(): Int =R.layout.fragment_home_list

    override fun initView(view: View) {
//        view.rv_min_video.layoutManager= GridLayoutManager(activity,2)
        views=view
    }

    override fun initData() {
//        getPresenter()!!.getMinVideoList()
    }

    override fun createPresenter(): HomePresenter = HomePresenter()

    override fun isRegister(): Boolean =false
    override fun setRecommend(data: MutableList<RecommenModel>) {

    }

    override fun setChannel(data: TabListModel) {
    }

    override fun <T> setData(data: T) {
//        var mList=data as MutableList<MinVideoModel>
//        views!!.rv_min_video.adapter= MinVideoAdapter(mList!!)
    }

    override fun setError(err: String) {

    }


}